//
//  JPSuspensionFunctionView.h
//  JPSuspensionViewDemo
//
//  Created by Carpenter on 2018/2/12.
//  Copyright © 2018年 carpenter. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JPSuspensionFunctionBaseContentView;
@protocol JPSuspensionFunctionViewDelegate <NSObject>

@optional

/**
 视图取消按钮点击响应
 
 @param contentView 功能视图
 */
- (void)suspensionFunctionViewDidCancel:(JPSuspensionFunctionBaseContentView *)contentView;

/**
 视图功能按钮点击响应
 
 @param contentView 功能视图
 @param data 响应信息
 */
-(void)suspensionFunctionView:(JPSuspensionFunctionBaseContentView *)contentView didFinishShowingHandleData:(id)data;


@end


@interface JPSuspensionFunctionView : UIView

/**
 推荐使用此方法快速构建视图
 
 @param contentView 自定义展示视图
 @return self
 */
+(instancetype)jp_sharedWithContent:(JPSuspensionFunctionBaseContentView *)contentView delegate:(id<JPSuspensionFunctionViewDelegate>)delegate showInView:(UIView*)view;
 
 
@end
